﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Carton.aspx.cs" Inherits="WMS6.Web.Configuration.Carton" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Carton</title>
     <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/Verification.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newCarton()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Carton.aspx?from="+escape(from);
            return false;
        }
        
        
        //弹出窗口选择装箱组
        function selectCartonGroup()
        {
            var rtnValue = popModalWindow('../Configuration/CartonQuery.aspx?action=txtCartonGroup','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCartonGroup").focus();
                document.getElementById("txtCartonGroup").value = rtnValue;
            }
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
        
    </script>
</head>
<body>
    <form id="F2111" runat="server">
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="装箱组" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnGoBack %>" Enabled="False"  
                            CausesValidation="False" onclick="btnGoBack_Click" meta:resourcekey="btnGoBackResource1" 
                               /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnNew %>" Enabled="False"  
                            AccessKey="n" OnClientClick="newCarton();" meta:resourcekey="btnNewResource1" 
                             /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnSave %>" Enabled="False" 
                            AccessKey="s" onclick="btnSave_Click" meta:resourcekey="btnSaveResource1" 
                                /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnDelete %>" 
                            Enabled="False"  AccessKey="d" 
                            
                            OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" 
                            onclick="btnDelete_Click" meta:resourcekey="btnDeleteResource1"    /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnCopy %>" Enabled="False" 
                            AccessKey="c" onclick="btnCopy_Click" meta:resourcekey="btnCopyResource1" 
                               /></td>
                </tr>
            </table>
        </div>
        
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                        meta:resourcekey="lblMsg"></asp:Label>
                </div>
                
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="imgL1"></div>
                    </div>
                    <div class="tabLabelCont tabCur" id="div1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1"
                            >常规</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="imgR1"></div>
                    </div>
                </div>
                
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td><asp:Label ID="lblCartonID" runat="server" CssClass="label" Text="装箱标识" 
                                        meta:resourcekey="lblCartonID"></asp:Label></td>
                                <td><asp:Label ID="lblDesc" runat="server" CssClass="label" Text="说明" 
                                        meta:resourcekey="lblDesc"></asp:Label></td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtCartonID" runat="server" CssClass="textbox" Enabled="False" 
                                        meta:resourcekey="txtCartonID"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtDesc" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtDesc"></asp:TextBox></td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblCartonGroup" runat="server" CssClass="label" Text="装箱组" 
                                        meta:resourcekey="lblCartonGroup"></asp:Label><font color="red">*</fount></td>
                                <td><asp:Label ID="lblLength" runat="server" CssClass="label" Text="长" 
                                        meta:resourcekey="lblLength"></asp:Label></td>
                                <td><asp:Label ID="lblCube" runat="server" CssClass="label" Text="体积限制" 
                                        meta:resourcekey="lblCube"></asp:Label></td>
                            </tr>
                            <tr>
                            <td><asp:TextBox ID="txtCartonGroup" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtCartonGroup"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" runat="server" id="imgCartonGroup" class="img" onclick="selectCartonGroup();"/> </td>
                                <td><asp:TextBox ID="txtLength" runat="server" CssClass="textbox" 
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                        meta:resourcekey="txtLength"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtCube" runat="server" CssClass="textbox" 
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                        meta:resourcekey="txtCube"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblCartonType" runat="server" CssClass="label" Text="纸箱类型" 
                                        meta:resourcekey="lblCartonType"></asp:Label></td>
                                <td><asp:Label ID="lblWidth" runat="server" CssClass="label" Text="宽" 
                                        meta:resourcekey="lblWidth"></asp:Label></td>
                                <td><asp:Label ID="lblMaxWeight" runat="server" CssClass="label" Text="重量限制" 
                                        meta:resourcekey="lblMaxWeight"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtCartonType" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtCartonType"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtWidth" runat="server" CssClass="textbox" 
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                        meta:resourcekey="txtWidth"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtMaxWeight" runat="server" CssClass="textbox" 
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                        meta:resourcekey="txtMaxWeight"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblSeqNo" runat="server" CssClass="label" Text="使用顺序" 
                                        meta:resourcekey="lblSeqNo"></asp:Label></td>
                                <td><asp:Label ID="lblHeight" runat="server" CssClass="label" Text="高" 
                                        meta:resourcekey="lblHeight"></asp:Label></td>
                                <td><asp:Label ID="lblMaxCount" runat="server" CssClass="label" Text="数量限制" 
                                        meta:resourcekey="lblMaxCount"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtSeqNo" runat="server" CssClass="textbox" 
                                        onblur="Javascript:dataVer._Is123(this,'lblMsg')" 
                                        meta:resourcekey="txtSeqNo"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtHeight" runat="server" CssClass="textbox" 
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                        meta:resourcekey="txtHeight"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtMaxCount" runat="server" CssClass="textbox" 
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                        meta:resourcekey="txtMaxCount"></asp:TextBox></td>
                            </tr>
                            <tr style="height:10px;">
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chbIsActive" runat="server" Text="启用" Checked="True" 
                                        meta:resourcekey="chbIsActive" />
                                </td>
                                <td colspan="2">&nbsp;</td>
                            </tr>
                            <tr>
                                <td><asp:CheckBox ID="chbSysteCreate" runat="server" Text="系统创建" Enabled="False" 
                                        meta:resourcekey="chbSysteCreate" /></td>
                                <td colspan="2">&nbsp;</td>
                            </tr>
                        </table>
                    </div>
                </div>    
                
             </ContentTemplate>
             <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <input type="hidden" id="hdnFrom" runat="server" />
        
    </div>
    </form>
</body>
</html>
